<?php
namespace app\admin\controller;
class Convert extends Admin{
    public function __construct(){
        parent::__construct();
        $this->model = 'Convert';
        $this->assign("model",$this->model);
    }
    public function get_where_map(){
        $whereData = input("param.whereData/s");
        $whereData = urldecode($whereData);
        $whereDatas = [];
        if ($whereData) {
            $whereData = explode('&', $whereData);
            foreach ($whereData as $v) {
                $r = explode('=', $v);
                if ($r[0] == 'keywords') {
                    $whereDatas['id|title|descrip'] = ['like', '%'.$r[1].'%'];
                }else{
                    $whereDatas[$r[0]] = $r[1];
                }
            }
        }
        return $whereDatas;
    }
}